import Vue from 'vue'
import Router from 'vue-router'
import EmpLogin from '@/components/EmpLogin'
import Login from '@/components/Login'
import Index from '@/components/Index'
import Greenroom from '@/components/Greenroom'
import MangerLoan from '@/components/MangerLoan'
import WeiDaKuan from '@/components/WeiDaKuan'
import YiDaKuan from '@/components/YiDaKuan'
import Staff from '@/components/Staff'
import PersonProduct from '@/components/PersonProduct'
import CompanyProduct from '@/components/CompanyProduct'
import ProductApp from '@/components/ProductApp'
import ProductRecord from '@/components/ProductRecord'
import Warning from '@/components/Warning'
import Checked from '@/components/Checked'
import Collection from '@/components/Collection'
import Bona from '@/components/Bona'
import Dept from '@/components/Dept'
import Bank from '@/components/Bank'
import Daikuan from '@/components/Daikuan'
import Dakuan from '@/components/Dakuan'
import LiuShui from '@/components/LiuShui'
import Jian from '@/components/Jian'
import ProductApproval from '@/components/ProductApproval'
import Preliminary from '@/components/Preliminary'
import Auditlogging from '@/components/Auditlogging'
import Seedetails from '@/components/Seedetails'
import UserWelcome from '@/components/UserWelcome'
import FinalJug from '@/components/FinalJug'
import SeedetailsFu from '@/components/SeedetailsFu'
import RejectChuFu from '@/components/RejectChuFu'
import HuanKuan from '@/components/HuanKuan'
import ProductEcharts from '@/components/ProductEcharts'
import Apply from '@/components/Apply'
import Moddle from '@/components/Moddle'
import HeTongBiao from '@/components/HeTongBiao'
import Emp from '@/components/Emp'
import Role from '@/components/Role'
import Permission from '@/components/Permission'


Vue.use(Router)

export default new Router({
    routes: [{
            path: '/',
            name: 'Login',
            component: Login
        },

        {
            path: '/index',
            name: 'Index',
            component: Index,
            meta: {
                show: false,
                goshow: true
            },
            
        },
        {
            path: '/greenroom',
            name: 'Greenroom',
            component: Greenroom,
            children: [{
                    path: '/huanKuan',
                    name: 'HuanKuan',
                    component: HuanKuan
                },
                {
                    path: '/dept',
                    name: 'Dept',
                    component: Dept
                },
                {
                    path: '/hetong',
                    name: 'HeTongBiao',
                    component: HeTongBiao
                },
                {
                    path: '/userWelcome',
                    name: 'UserWelcome',
                    component: UserWelcome
                }
            ]
        },
        {
            path: '/EmpLogin',
            name: 'EmpLogin',
            component: EmpLogin
        },


        {
            path: '/staff',
            name: 'Staff',
            component: Staff,
            children: [{
                    path: '/mangerLoan',
                    name: 'MangerLoan',
                    component: MangerLoan
                },
                {
                    path: '/seedetails',
                    name: 'Seedetails',
                    component: Seedetails
                },
                {
                    path: '/Emp',
                    name: 'Emp',
                    component: Emp
                },
                {
                    path: '/Role',
                    name: 'Role',
                    component: Role
                },
                {
                    path: '/Permission',
                    name: 'Permission',
                    component: Permission
                },
                {
                    path: '/seedetailsFu',
                    name: 'SeedetailsFu',
                    component: SeedetailsFu
                },
                {
                    path: '/preliminary',
                    name: 'Preliminary',
                    component: Preliminary,
                    children: [
                    ]

                },
                {
                    path: '/finalJug',
                    name: 'FinalJug',
                    component: FinalJug,
                },
                {
                    path: '/auditlogging',
                    name: 'Auditlogging',
                    component: Auditlogging
                },
                {
                    path: '/rejectChuFu',
                    name: 'RejectChuFu',
                    component: RejectChuFu
                },

                {
                    path: '/warning',
                    name: 'Warning',
                    component: Warning

                },
                {
                    path: '/checked',
                    name: 'Checked',
                    component: Checked
                }, {
                    path: '/personProduct',
                    name: 'PersonProduct',
                    component: PersonProduct
                },
                {
                    path: '/companyProduct',
                    name: 'CompanyProduct',
                    component: CompanyProduct
                },
                {
                    path: '/productApp',
                    name: 'ProductApp',
                    component: ProductApp
                },
                {
                    path: '/productRecord',
                    name: 'ProductRecord',
                    component: ProductRecord
                }, , {
                    path: '/weiDaKuan',
                    name: 'WeiDaKuan',
                    component: WeiDaKuan
                }, {
                    path: '/daikuan',
                    name: 'DaiKuan',
                    component: Daikuan
                }, {
                    path: '/daKuan',
                    name: 'DaKuan',
                    component: Dakuan
                },
                {
                    path: '/moddle',
                    name: 'Moddle',
                    component: Moddle
                },
                {
                    path: '/yiDaKuan',
                    name: 'YiDaKuan',
                    component: YiDaKuan
                }, {
                    path: '/liuShui',
                    name: 'LiuShui',
                    component: LiuShui
                }, {
                    path: '/jian',
                    name: 'Jian',
                    component: Jian
                }, {
                    path: '/bank',
                    name: 'Bank',
                    component: Bank
                }, {
                    path: '/productApproval',
                    name: 'ProductApproval',
                    component: ProductApproval

                },
                {
                    path: '/productEcharts',
                    name: 'ProductEcharts',
                    component: ProductEcharts
                },
                {
                    path: '/collection',
                    name: 'Collection',
                    component: Collection
                },
                {
                    path: '/bona',
                    name: 'Bona',
                    component: Bona
                }, {
                    path: '/apply',
                    name: 'Apply',
                    component: Apply
                }

            ]

        },

    ]
})